<template>
  <button @click="handlerClick">点击</button>
  <div>{{ msg }}</div>
  <div>{{ count }}</div>
  <slot />
</template>

<script setup lang="ts">
import { ref } from "vue";

defineOptions({
  name: "ChildComponent"
});

defineProps<{ msg: string }>();

const count = ref(0);

const handlerClick = () => {
  count.value++;
};
</script>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
